Skip to content

Support openeo.api.process.Parameter as resolution in DataCube.resamp…#898

Open
VincentVerelst wants to merge 3 commits into
masterfrom
897-resolution-parameter-resample-spatial
Open

Support openeo.api.process.Parameter as resolution in DataCube.resamp…#898
VincentVerelst wants to merge 3 commits into
masterfrom
897-resolution-parameter-resample-spatial

Conversation

@VincentVerelst
Copy link
Copy Markdown
Collaborator

Fixes #897

@VincentVerelst VincentVerelst requested a review from soxofaan May 11, 2026 14:40
Comment thread openeo/metadata.py Outdated
Comment thread openeo/metadata.py Outdated
self,
resolution: Union[float, Tuple[float, float], List[float]] = 0.0,
resolution: Union[float, Tuple[float, float], List[float], "Parameter"] = 0.0,
projection: Union[int, str, None] = None,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also allow projection to be a parameter here, while we're at it?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added, with the same logic that the metadata crs should become None, if projection is a Parameter

Comment thread openeo/metadata.py Outdated
Comment thread tests/test_metadata.py Outdated
@VincentVerelst VincentVerelst requested a review from soxofaan May 12, 2026 08:01
Comment thread CHANGELOG.md Outdated
Co-authored-by: Stefaan Lippens <soxofaan@users.noreply.github.com>
@VincentVerelst VincentVerelst requested a review from soxofaan May 12, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow openeo.api.process.Parameter object as resolution in DataCube.resample_spatial()

2 participants